<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
         <script type="text/javascript" charset="utf-8" src="/../Thinkphp/Public/library/utf8-php/ueditor.config.js"></script>
        <script type="text/javascript" charset="utf-8" src="/../Thinkphp/Public/library/utf8-php/ueditor.all.min.js"> </script>
        <script type="text/javascript" charset="utf-8" src="/../Thinkphp/Public/library/utf8-php/lang/zh-cn/zh-cn.js"></script>
        <style type="text/css">
            div{
               width:100%;
            }        
        </style>
             <script type="text/javascript"> 
             var ue = UE.getEditor('editor');
        </script>
    </head>
    <body>
        <div>
            <h1>更新</h1>
            <form action="<?php print U('Admin/blog/doupdate');?>" enctype="multipart/form-data"    method='post'>
                <input type='hidden' name='id' value="<?php print $data['id'];?>"/>
                title:<input type='text' name='title' value="<?php print $data['title'];?>"/><br/>             
                body:<div>
                    <textarea id="editor" name='body' style="width:600px;height:300px;">
                        <?php print $data['body'];?>
                    </textarea>
                    </div>
                <input type="hidden" name="image" value="<?php print $data['image'];?>"/>
              图片：  <input type='file' name='images' ><br/>  
                <input type='submit' value='确定'/>
            </form>
        </div>
    </body>
</html>
